package com.ln.quartz;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author Ln
 * @version 终极版
 * @date 2022/11/18 15:33
 */
@Component
public class MyQuartz {
    @Scheduled(cron = "0/2 * * * * ?")
    public void show(){
        System.out.println("你好世界");
    }
}
